package other.result;

/**
 * 响应码
 */
public enum Code {

    SUCCESS(0, "success"),
    FALL(500, "fail");

    private final int code;

    private final String msg;

    Code(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
